package main;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import test.beans.Test;

/**
 * @author 申鹏飞 
 * @version 创建时间：Dec 6, 2012 4:54:54 PM
 * 类说明
 */

public class TestMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		new TestMain().test();
	}
	
	public void test(){
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("test.xml");
		Test test = (Test)context.getBean("testBean");
		System.out.println(test.getValue());
	}

}
